using JTZY.Model.Order.Dto;
using JTZY.Model.Order;

namespace JTZY.Service.Order.IOrderService
{
    /// <summary>
    /// 退款单表service接口
    /// </summary>
    public interface ICorecmsbillrefundService : IBaseService<Corecmsbillrefund>
    {
        PagedInfo<CorecmsbillrefundDto> GetList(CorecmsbillrefundQueryDto parm);

        Corecmsbillrefund GetInfo(string RefundId);


        Corecmsbillrefund AddCorecmsbillrefund(Corecmsbillrefund parm);
        int UpdateCorecmsbillrefund(Corecmsbillrefund parm);
        Task<WebApiCallBack> ToAdd(long userId, string orderId, int orderType, decimal refund, string aftersalesId, string sourceType = "0");

        Task<WebApiCallBack> PaymentRefund(string refundId);
    }
}
